<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>数组展开</title>
</head>
<body>
    <script>
        /*let arr=[1,2,3];
        function show(a,b,c){
            alert(a+b+c);
        }
        //show(arr);
        show(...arr);*/
        
        let arr1=[1,2,3];
        let arr2=[4,5,6];
        //alert(arr1+arr2);
        let arr=[...arr1,...arr2];
        alert(arr);
    </script>
</body>
</html>